﻿<%@ Page Title="Alteração de Senha" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="AlterarSenha.aspx.cs" Inherits="AcadPosApp.Seguranca.AlterarSenha" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style type="text/css">
        #centro
        {
            width: 100px;
            height: 100px;
            position: absolute;
            top: 50%;
            left: 45%;
            margin-top: -100px;
            margin-left: -50px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="alert alert-warning alert-dismissible">
   <b>Sua nova senha deve conter:</b><br />
    - No mínimo 6 caracteres;<br />
    - Conter pelo menos 1 caracter alfanumérico. Exemplo : (@#%$);<br />
    </div>
    <div id="centro">
        <asp:ChangePassword ID="ChangePassword1" runat="server" BackColor="#F7F6F3" BorderColor="#E6E2D8"
            BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana"
            Font-Size="XX-Small" Width="300px" ChangePasswordFailureText="Senha(s) inválida(s)!"
            ContinueDestinationPageUrl="~/Default.aspx">
            <CancelButtonStyle />
            <ChangePasswordButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
                BorderWidth="1px" Font-Names="Verdana" Font-Size="Small" ForeColor="#284775" />
            <ChangePasswordTemplate>
                <table class="form-inline" cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                    <tr>
                        <td class="style1">
                            <table cellpadding="0">
                                <tr>
                                    <td align="center" colspan="2">
                                        <h3>
                                            Alteração Senha</h3>
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="CurrentPasswordLabel" runat="server" AssociatedControlID="CurrentPassword">Senha:</asp:Label>
                                    </td>
                                    <td class="style2">
                                        <asp:TextBox ID="CurrentPassword" runat="server" Height="30px" required TextMode="Password"
                                            MaxLength="10"></asp:TextBox>
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <br />
                                        <asp:Label ID="NewPasswordLabel" runat="server" AssociatedControlID="NewPassword">Nova Senha:</asp:Label>
                                    </td>
                                    <td class="style2">
                                        <asp:TextBox ID="NewPassword" runat="server" Height="30px" required TextMode="Password"
                                            MaxLength="10"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <br />
                                        <asp:Label ID="ConfirmNewPasswordLabel" runat="server" AssociatedControlID="ConfirmNewPassword">Confirmação:</asp:Label>
                                    </td>
                                    <td class="style2">
                                        <asp:TextBox ID="ConfirmNewPassword" runat="server" Height="30px" required TextMode="Password"
                                            MaxLength="10"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2">
                                        <asp:CompareValidator ID="NewPasswordCompare" runat="server" ControlToCompare="NewPassword"
                                            ControlToValidate="ConfirmNewPassword" Display="Dynamic" ErrorMessage="As senhas informadas não conferem!"
                                            ValidationGroup="ChangePassword1"></asp:CompareValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" style="color: Red;">
                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                    </td>
                                </tr>
                                <div class="legenda">
                                    <tr>
                                        <td align="center" colspan="2">
                                            <br />
                                            <br />
                                            <br />
                                        </td>
                                    </tr>
                                </div>
                            </table>
                            <div align="center">
                                <asp:Button ID="ChangePasswordPushButton" runat="server" CommandName="ChangePassword"
                                    Text="Confirmar" ValidationGroup="ChangePassword1" Width="80px" />
                                <asp:Button ID="btnCancelar" formnovalidate="formnovalidate" runat="server" Text="Cancelar"
                                    Width="80px" OnClick="btnCancelar_Click" />
                            </div>
                        </td>
                    </tr>
                </table>
            </ChangePasswordTemplate>
            <ContinueButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid"
                BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284775"
                Width="300px" />
            <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
            <PasswordHintStyle Font-Italic="True" ForeColor="#888888" />
            <SuccessTemplate>
                <table cellpadding="4" cellspacing="0" style="border-collapse: collapse;">
                    <tr>
                        <td>
                            <table cellpadding="0">
                                <tr>
                                    <td align="center">
                                        <h4>
                                            Alteração Senha</h4>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <h5>
                                            Senha alterada com sucesso!</h5>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Button ID="ContinuePushButton" runat="server" BorderStyle="Solid" BorderWidth="1px"
                                            CausesValidation="False" CommandName="Continue" Text="Continuar" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </SuccessTemplate>
            <TextBoxStyle Font-Size="Small" />
            <TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="12pt" ForeColor="White" />
        </asp:ChangePassword>
    </div>
</asp:Content>
